b90d92a9d8ad5f647eaf11404331bf00a9e070f0,redpen-core/src/main/java/cc/redpen/parser/asciidoc/AsciiDocParser.java,AsciiDocParser,processLine,#Line#Model#State#,243

Before Change


        }

        // enclosed directives
        line.eraseEnclosure("+++", "+++", AsciiDocLine.EraseStyle.All);
        line.eraseEnclosure("[[", "]]", AsciiDocLine.EraseStyle.All);
        line.eraseEnclosure("<<", ">>", AsciiDocLine.EraseStyle.PreserveLabel);
        line.eraseEnclosure("{", "}", AsciiDocLine.EraseStyle.Markers); // NOTE: should we make substitutions?

After Change



        // handle images
        int position = line.eraseEnclosure("image:", " ,[", AsciiDocLine.EraseStyle.CloseMarkerContainsDelimiters);
        if (position != -1) {
            line.eraseEnclosure("[", "]", AsciiDocLine.EraseStyle.All); // TODO: extract "caption" and "title" as a sentence
        } else {
            // enclosed directives
            line.eraseEnclosure("+++", "+++", AsciiDocLine.EraseStyle.All);
            line.eraseEnclosure("[[", "]]", AsciiDocLine.EraseStyle.All);
            line.eraseEnclosure("<<", ">>", AsciiDocLine.EraseStyle.PreserveLabel);
            line.eraseEnclosure("{", "}", AsciiDocLine.EraseStyle.Markers); // NOTE: should we make substitutions?